home *** CD-ROM | disk | FTP | other *** search
Wrap
'CMNPROCS.BAS -- Since these procedures are in a ' separate module not attached to any form, they ' may be called from anywhere in the application Dim Success As Integer 'CMNPROCS.BAS Sub ExploreHelp (HelpCommand As Long, Topic As Long) On Error GoTo HelpError Success = WinHelp(hWnd, HelpfileName, HelpCommand, ByVal Topic) If Success = 0 Then GoTo HelpError Exit Sub HelpError: MsgBox "You must set the MAXWINVB environment variable in your AUTOEXEC.BAT file to the drive and directory where you installed this application's files for it to run correctly.", 0, "Environment Not Set" CloseApp Screen.ActiveForm.hWnd End Sub 'CMNPROCS.BAS -- Sub CloseApp (ByVal hWnd As Integer) If Success = 0 Then End Success = WinHelp(hWnd, HelpfileName, HELP_QUIT, ByVal NULL) End End Sub 'CMNPROCS.BAS Sub LblChangeForm (CurrentForm As Form, NewForm As Form) CurrentForm.Hide ' Hide itself NewForm.Show ' Move to appropriate form End Sub